// 获取部门tree中地球站的img地址
function getDeptTreeNodeImgSrc (nodeType, kind) {
  if (nodeType === 'root') {
    return require('@/assets/config/remote/qw.png')
  } else if (nodeType === 'dept') {
    return require('@/assets/config/remote/dq.png')
  } else if (nodeType === 'station') {
    // 地球站的类型图
    if (kind === 0) {
      return require('@/assets/config/remote/tx.png')
    } else if (kind === 1) {
      return require('@/assets/config/remote/bx.png')
    } else if (kind === 2) {
      return require('@/assets/config/remote/che.png')
    } else if (kind === 3) {
      return require('@/assets/config/remote/cz.png')
    } else if (kind === 4) {
      return require('@/assets/config/remote/fj.png')
    } else if (kind === 5) {
      return require('@/assets/config/remote/jrz.png')
    } else if (kind === 6) {
      return require('@/assets/config/remote/ips.png')
    }
  } else {
    return require('@/assets/config/remote/cu.png')
  }
  return 0
}

// 获取地球站的img地址
function getStationImgSrc (kind) {
  // 地球站的类型图
  if (kind === 0) {
    return require('@/assets/config/remote/tx.png')
  } else if (kind === 1) {
    return require('@/assets/config/remote/bx.png')
  } else if (kind === 2) {
    return require('@/assets/config/remote/che.png')
  } else if (kind === 3) {
    return require('@/assets/config/remote/cz.png')
  } else if (kind === 4) {
    return require('@/assets/config/remote/fj.png')
  } else if (kind === 5) {
    return require('@/assets/config/remote/jrz.png')
  } else if (kind === 6) {
    return require('@/assets/config/remote/ips.png')
  }
}

const renderMethod = {
  getDeptTreeNodeImgSrc,
  getStationImgSrc
}

export default renderMethod
